package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import java.net.InetAddress;
import java.net.UnknownHostException;

@SpringBootApplication
public class Demo3Application {
    public static void main(String[] args) throws UnknownHostException {
        SpringApplication.run(Demo3Application.class, args);
        System.out.println("本机的IP地址为："+ InetAddress.getLocalHost().getHostAddress());
    }

}
